<?php
/*
	辅助插件
*/
defined('BY_JYA') or exit('error');
$list = array(
			array('title'=>'促销类','list'=>array(
					array('name'=>'jy_coupon','title'=>'全网优惠券','desc'=>'集各种优惠券以一身！','icon'=>''),
					array('name'=>'jy_daysale','title'=>'每日特价','desc'=>'每日特价菜！','icon'=>''),
					array('name'=>'jy_dishpackage','title'=>'三菜一汤','desc'=>'经济快餐自助服务','icon'=>''),
			)),
			array('title'=>'辅助类','list'=>array(
					array('name'=>'jy_dishprinttpl','title'=>'打印模板','desc'=>'各种打印机模板自定义','icon'=>''),
					array('name'=>'jy_dishdiy','title'=>'店铺装修','desc'=>'自由搭建个性餐饮店铺，做不一样的自己！','icon'=>''),
			)),
);
$setting = $this->plugin_setting('setting');
$plugin_setting = $setting['plugins'];
if($plugin_setting){
		$list[1]['list'] = $plugin_setting;
}
foreach($list as &$type){
	foreach($type['list'] as &$p){
		$install = check_permission($p['name']);
		if($install){
			$p['is_install'] = 1;
			$p['is_show'] = 1;
		}else{
			$p['is_install'] = 0;
			$p['is_show'] = 0;
			if($_SESSION['isfounder']){
				$p['is_show'] = 1;
			}
		}
		
	}
}

return  $list;